﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ManageAssignments.aspx.cs" Inherits="RealEstateCenter.ManageAssignments" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        AllowPaging="True" AllowSorting="True"
        DataKeyNames="request_id"
        BorderStyle="Solid" PageSize="50" GridLines="None" 
        HorizontalAlign="Center">
        <AlternatingRowStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="request_id" HeaderText="Request No" 
                InsertVisible="False" ReadOnly="True" SortExpression="request_id" />
            <asp:BoundField DataField="estate_id" HeaderText="Estate ID" 
                SortExpression="estate_id" />
            <asp:BoundField DataField="agency_id" HeaderText="Agency ID" 
                SortExpression="agency_id" />
            <asp:HyperLinkField DataNavigateUrlFields="estate_id" HeaderText="" Text="View Estate"
                 DataNavigateUrlFormatString="ViewEstate.aspx?id={0}" NavigateUrl="ViewEstate.aspx" />
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                <div style="text-align:center; width:50px;">
                    <asp:LinkButton ID="deny_request" runat="server" OnClick="deny_request_Click" >
                    <asp:Image ID="Image1" ImageUrl="~/deletebutton.gif" runat="server" ImageAlign="Middle" />
                    </asp:LinkButton></div>
                </ItemTemplate>
            </asp:TemplateField>

        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\RealEstateCenter.mdf;Integrated Security=True;User Instance=True" 
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Assignment]">
    </asp:SqlDataSource>


</asp:Content>
